package com.huawei.push.controller.enity;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

/**
 * 华为通知消息的实体
 */
@Component
public class MsgEnity {
//    通知栏标题
    private String notifySummary ;
//    消息体
    private String body;
//    消息标题
     private String title;
//     组名 控制消息是否归为一组进行展示
    private String groupName;

    public String getNotifySummary() {
        return notifySummary;
    }

    public void setNotifySummary(String notifySummary) {
        this.notifySummary = notifySummary;
    }



    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }



    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
//        组名不能为空
        if (StringUtils.isEmpty(groupName)){
            groupName="YunJingGroup";
        }
        this.groupName = groupName;
    }
}
